package com.atguigu.lease.admin.mapper;

import com.atguigu.lease.model.bean.ApartmentInfo;
import com.atguigu.lease.model.dto.ApartmentItemQueryDto;
import com.atguigu.lease.model.vo.ApartmentItemVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 1
* @description 针对表【apartment_info(公寓信息表)】的数据库操作Mapper
* @createDate 2025-09-22 17:18:51
* @Entity com.atguigu.lease.model.bean.ApartmentInfo
*/
public interface ApartmentInfoMapper extends BaseMapper<ApartmentInfo> {

    List<ApartmentItemVo> selectPageItem(Page<ApartmentItemVo> page,
                                         // 使用命名参数 给变量绑定名称，自定义sql时 可以通过#{queryDto.属性名}获取属性值
                                         @Param("queryDto") ApartmentItemQueryDto queryDto);
}




